﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteRequireLogin.Master" AutoEventWireup="true" CodeBehind="Addnews.aspx.cs" Inherits="TranTekBE.News.Addnews" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   <link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700' rel='stylesheet' type='text/css'>
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans&subset=latin,vietnamese' rel='stylesheet' type='text/css'>
	<link href='http://fonts.googleapis.com/css?family=Oswald:400,700' rel='stylesheet' type='text/css'>
       <link href="../Maintenance/css/bootstrap.css" rel="stylesheet" />
     <link href="css/foundation.css" rel="stylesheet" />
    <link href="css/responsive.css" rel="stylesheet" />
    <link href="css/style.css" rel="stylesheet" />

    <script src="ckeditor/ckeditor.js"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" runat="server">
    <section class="container row clearfix">



        <header class="clearfix">
			<nav id="main-menu" class="left navigation">
				<ul class="sf-menu no-bullet inline-list m0">
					<li><a href="Home.aspx">HOME</a></li>
                    <li><a href="#">CHUYÊN MỤC</a>
		    			<ul class="sub-menu">
							<li><a href="Announcement.aspx">THÔNG BÁO</a></li>
							<li><a href="Event.aspx">SỰ KIỆN</a></li>
						</ul>
		    		</li>
		    		<li>
                        <a href="Addnews.aspx" class="active">VIẾT BÀI MỚI</a>
		    		</li>
				</ul>
			</nav>
		</header>
        <!-- Bắt đầu menu top -->

        <!-- Kết thúc menu top -->

       <section class="inner-container clearfix">
			<!-- Content -->
			<section id="Section1" class="twleve column row pull-center">
				<h4 class="cat-title mb25">THÊM BÀI VIẾT MỚI</h4>
        <form>
            <fieldset class="control-group">
                <div class="row">
                    <asp:Label ID="msg" runat="server"></asp:Label>
                    <div class="multicol">
                            <div class="control-group" style="width:300px;">
        		                <label class="control-label bold" for="name">Lựa chọn mục tin đăng:
                                </label>
        		                <div class="controls">
                                    <asp:DropDownList ID="DropDownList1" runat="server"></asp:DropDownList>
        			            </div>
        		            </div>
    		            </div>
                     <div class="multicol">
                            <div class="control-group" style="width:900px;">
        		                <label class="control-label bold" for="name">Upload ảnh slide nếu muốn tin này nằm top3:
                                </label>
        		                <div class="controls">
                                    <asp:FileUpload ID="FileUpload2" runat="server" />
        			            </div>
        		            </div>
    		            </div>
                    <div class="multicol">
                            <div class="control-group" style="width:900px;">
        		                <label class="control-label bold" for="name">Upload ảnh đại diện ( bắt buộc size từ 130x130 đến 180x180 ):
                                </label>
        		                <div class="controls">
                                    <asp:FileUpload ID="FileUpload1" runat="server" />
        			            </div>
        		            </div>
    		            </div>
                     <div class="multicol">
                            <div class="control-group" style="width:600px;">
        		                <label class="control-label bold" for="name">Tiêu đề:
                                </label>
        		                <div class="controls">
                                    <asp:TextBox ID="title" style="width:600px;" runat="server"></asp:TextBox>
        			            </div>
        		            </div>
    		            </div>
                        <div class="multicol">
                            <div class="control-group" style="width:900px;">
        		                <label class="control-label bold" for="name">Nội dung tóm tắt:
                                </label>
        		                <div class="controls">
                                    <asp:TextBox ID="contentsmall" runat="server" TextMode="MultiLine"></asp:TextBox>
                                    <script type="text/javascript">
                                        CKEDITOR.config.extraPlugins = 'wordcount';
                                        CKEDITOR.config.wordcount = {
                                            showCharCount: true
                                        };
                                        CKEDITOR.config.toolbar_Basic =
                                        [
	                                        []
                                        ];
                                        CKEDITOR.replace('<%=contentsmall.ClientID%>',
                                        {
                                            toolbar: 'Basic'
                                        });

                                    </script>
        			            </div>
        		            </div>
    		            </div>
                    <div class="multicol">
                            <div class="control-group" style="width:900px;">
        		                <label class="control-label bold" for="name">Nội dung:
                                </label>
        		                <div class="controls">
                                     <asp:TextBox ID="content" runat="server" TextMode="MultiLine"></asp:TextBox>
                                    <script type="text/javascript">
                                        CKEDITOR.replace('<%=content.ClientID%>',
                                            {
                                                filebrowserImageUploadUrl: '/News/Upload.ashx'
                                            }
                                            );

                                    </script>
        			            </div>
        		            </div>
    		            </div>
                </div>  
                <center>
                    <asp:Button ID="submit" class="btn btn-primary btn-large" runat="server" Text="Đăng bài viết" OnClick="submit_Click" /></center>
                <br />
                  <br />
                 <br />
                 <br />
            </fieldset>
                    
        </form>
                </section>
                </section>
        </section>
</asp:Content>
